package com.yoda.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
@TableName("sys_config")
@ApiModel(value = "SysConfig对象", description = "")
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class SysConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("配置名称")
    private String groupValue;

    @ApiModelProperty("tab 引入的组件名称")
    private String tabValue;

    @ApiModelProperty("配置配置键名英文")
    private String attrKey;

    @ApiModelProperty("配置字段中文名")
    private String attrName;

    @ApiModelProperty("配置值内容")
    private String attrValue;

    @ApiModelProperty("0正常 1 已删除")
    private Integer delFlag;

    @ApiModelProperty("字段类型，参见字段表")
    private Integer type;

    @ApiModelProperty("单选多选数据值")
    private String configValue;

    @ApiModelProperty("验证规则	")
    private String validator;

    @ApiModelProperty("输入框提示文字")
    private String placeholder;

    @ApiModelProperty("0 不可删除，1可删除")
    private Integer canDelete;

    @ApiModelProperty("显示权重，数字大的往后")
    private Integer sortNum;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGroupValue() {
        return groupValue;
    }

    public void setGroupValue(String groupValue) {
        this.groupValue = groupValue;
    }

    public String getTabValue() {
        return tabValue;
    }

    public void setTabValue(String tabValue) {
        this.tabValue = tabValue;
    }

    public String getAttrKey() {
        return attrKey;
    }

    public void setAttrKey(String attrKey) {
        this.attrKey = attrKey;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getAttrValue() {
        return attrValue;
    }

    public void setAttrValue(String attrValue) {
        this.attrValue = attrValue;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getConfigValue() {
        return configValue;
    }

    public void setConfigValue(String configValue) {
        this.configValue = configValue;
    }

    public String getValidator() {
        return validator;
    }

    public void setValidator(String validator) {
        this.validator = validator;
    }

    public String getPlaceholder() {
        return placeholder;
    }

    public void setPlaceholder(String placeholder) {
        this.placeholder = placeholder;
    }

    public Integer getCanDelete() {
        return canDelete;
    }

    public void setCanDelete(Integer canDelete) {
        this.canDelete = canDelete;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    @Override
    public String toString() {
        return "SysConfig{" +
        "id=" + id +
        ", groupValue=" + groupValue +
        ", tabValue=" + tabValue +
        ", attrKey=" + attrKey +
        ", attrName=" + attrName +
        ", attrValue=" + attrValue +
        ", delFlag=" + delFlag +
        ", type=" + type +
        ", configValue=" + configValue +
        ", validator=" + validator +
        ", placeholder=" + placeholder +
        ", canDelete=" + canDelete +
        ", sortNum=" + sortNum +
        "}";
    }
}
